<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>
        住院登记
    </title>
    <style>
        body{background-image: url("../images/djbjt.jpg")}
        #goOrder2{
            width: 400px;
            height: 300px;
            /*background-color: #fff;*/
            font-size: 24px;
            font-weight: bolder;
            color: green;
            margin: auto;
            margin-top: 240px;
            text-align: center;
        }
    </style>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../css/x-admin.css" media="all">
    <link rel="stylesheet" href="../css/pag.css" media="all">
</head>
<body>
<div class="doRecord">
    <div id="goOrder2">
        <p>住院登记成功！<br><span id="time" style="color:red;">5</span>秒后跳转到查询页面...</p>
    </div>

</div>
<script src="../js/zygl/zydj.js"></script>
<script type="text/javascript">
    //5秒后自动跳转到一个页面
    function countDown(){
        //获取初始时间
        var time = document.getElementById("time");
        //获取到id为time标签中的数字时间
        if(time.innerHTML == 0){
            //等于0时清除计时，并跳转该指定页面
            window.location.href="${pageContext.request.contextPath}/zycx";
        }else{
            time.innerHTML = time.innerHTML-1;
        }
    }
    //1000毫秒调用一次
    window.setInterval("countDown()",1000);
</script>
</body>
</html>